<template>
  <div class="home">
    <h1>{{admin.username}}</h1>
    <h1>{{admin.email}}</h1>
    <h1>{{admin.phone}}</h1>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data() {
    return {
      admin: sessionStorage.getItem('admin') ? JSON.parse(sessionStorage.getItem('admin')) : {}
    }
  },
  created() {
    this.request.get("/api/admin/" + this.admin.id).then(res => {
      if(res.code === '200'){
        if(res.data){
          this.admin = res.data;
        }
      }
    })
  }
}
</script>


<style lang="scss" scoped>

</style>